package cn.edu.lsu.integratedsurvey.service;

import cn.edu.lsu.integratedsurvey.bean.User;
import cn.edu.lsu.integratedsurvey.bean.dto.LoginDto;
import cn.edu.lsu.integratedsurvey.bean.dto.UserChangeDto;
import cn.edu.lsu.integratedsurvey.bean.dto.UserRegisterDto;
import cn.edu.lsu.integratedsurvey.bean.vo.HistoryInfoVo;
import cn.edu.lsu.integratedsurvey.bean.vo.LoginVo;
import cn.edu.lsu.integratedsurvey.bean.vo.UserInfoVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 * @description 针对表【user(用户表)】的数据库操作Service
 * @Date 2024-05-01 10:12:36
 * @author Jasmine-drs
 */
public interface UserService extends IService<User> {

	LoginVo login(LoginDto userLogin);

	boolean register(UserRegisterDto userRegisterDto, Integer operatorId);

	Page<HistoryInfoVo> getHistoryInfoById(Integer id, Integer pageNumber, Integer pageSize);

	List<UserInfoVo> getAllUser();

	List<UserInfoVo> searchUser(String keyword);

	boolean confirmPassword(UserChangeDto userChangeDto);

	boolean changePassword(UserChangeDto userChangeDto);

	boolean resetPassword(String account);
}
